package com.hero.jobweb.dao.ibatis;

import com.hero.jobweb.dao.ITbFavoritePositionDAO;
import com.hero.jobweb.entity.TbFavoritePosition;
import com.hero.jobweb.entity.TbFavoritePositionExample;
import com.hero.jobweb.entity.TbFavoritePositionKey;
import com.hero.web.dao.IbatisBaseDao;
import java.util.List;

public class TbFavoritePositionDAOImpl extends IbatisBaseDao<TbFavoritePosition, TbFavoritePositionExample> implements ITbFavoritePositionDAO {

    /**
     * This method was generated by Apache iBATIS ibator.
     * This method corresponds to the database table tb_favorite_position11
     *
     * @ibatorgenerated Thu Jun 09 06:46:24 GMT 2011
     */
    public TbFavoritePositionDAOImpl() {
        super();
    }

    /**
     * This method was generated by Apache iBATIS ibator.
     * This method corresponds to the database table tb_favorite_position11
     *
     * @ibatorgenerated Thu Jun 09 06:46:24 GMT 2011
     */
    public int countByExample(TbFavoritePositionExample example) {
        Integer count = (Integer)  getSqlMapClientTemplate().queryForObject("tb_favorite_position.ibatorgenerated_countByExample", example);
        return count;
    }

    /**
     * This method was generated by Apache iBATIS ibator.
     * This method corresponds to the database table tb_favorite_position11
     *
     * @ibatorgenerated Thu Jun 09 06:46:24 GMT 2011
     */
    public int deleteByExample(TbFavoritePositionExample example) {
        int rows = getSqlMapClientTemplate().delete("tb_favorite_position.ibatorgenerated_deleteByExample", example);
        return rows;
    }

    /**
     * This method was generated by Apache iBATIS ibator.
     * This method corresponds to the database table tb_favorite_position11
     *
     * @ibatorgenerated Thu Jun 09 06:46:24 GMT 2011
     */
    public int deleteByPrimaryKey(TbFavoritePositionKey key) {
        int rows = getSqlMapClientTemplate().delete("tb_favorite_position.ibatorgenerated_deleteByPrimaryKey", key);
        return rows;
    }

    /**
     * This method was generated by Apache iBATIS ibator.
     * This method corresponds to the database table tb_favorite_position11
     *
     * @ibatorgenerated Thu Jun 09 06:46:24 GMT 2011
     */
    public void insert(TbFavoritePosition record) {
        getSqlMapClientTemplate().insert("tb_favorite_position.ibatorgenerated_insert", record);
    }

    /**
     * This method was generated by Apache iBATIS ibator.
     * This method corresponds to the database table tb_favorite_position11
     *
     * @ibatorgenerated Thu Jun 09 06:46:24 GMT 2011
     */
    public void insertSelective(TbFavoritePosition record) {
        getSqlMapClientTemplate().insert("tb_favorite_position.ibatorgenerated_insertSelective", record);
    }

    /**
     * This method was generated by Apache iBATIS ibator.
     * This method corresponds to the database table tb_favorite_position11
     *
     * @ibatorgenerated Thu Jun 09 06:46:24 GMT 2011
     */
    @SuppressWarnings("unchecked")
    public List<TbFavoritePosition> selectByExample(TbFavoritePositionExample example) {
        List<TbFavoritePosition> list = getSqlMapClientTemplate().queryForList("tb_favorite_position.ibatorgenerated_selectByExample", example);
        return list;
    }

    /**
     * This method was generated by Apache iBATIS ibator.
     * This method corresponds to the database table tb_favorite_position11
     *
     * @ibatorgenerated Thu Jun 09 06:46:24 GMT 2011
     */
    public TbFavoritePosition selectByPrimaryKey(TbFavoritePositionKey key) {
        TbFavoritePosition record = (TbFavoritePosition) getSqlMapClientTemplate().queryForObject("tb_favorite_position.ibatorgenerated_selectByPrimaryKey", key);
        return record;
    }

    /**
     * This method was generated by Apache iBATIS ibator.
     * This method corresponds to the database table tb_favorite_position11
     *
     * @ibatorgenerated Thu Jun 09 06:46:24 GMT 2011
     */
    public int updateByExampleSelective(TbFavoritePosition record, TbFavoritePositionExample example) {
        UpdateByExampleParms parms = new UpdateByExampleParms(record, example);
        int rows = getSqlMapClientTemplate().update("tb_favorite_position.ibatorgenerated_updateByExampleSelective", parms);
        return rows;
    }

    /**
     * This method was generated by Apache iBATIS ibator.
     * This method corresponds to the database table tb_favorite_position11
     *
     * @ibatorgenerated Thu Jun 09 06:46:24 GMT 2011
     */
    public int updateByExample(TbFavoritePosition record, TbFavoritePositionExample example) {
        UpdateByExampleParms parms = new UpdateByExampleParms(record, example);
        int rows = getSqlMapClientTemplate().update("tb_favorite_position.ibatorgenerated_updateByExample", parms);
        return rows;
    }

    /**
     * This method was generated by Apache iBATIS ibator.
     * This method corresponds to the database table tb_favorite_position11
     *
     * @ibatorgenerated Thu Jun 09 06:46:24 GMT 2011
     */
    public int updateByPrimaryKeySelective(TbFavoritePosition record) {
        int rows = getSqlMapClientTemplate().update("tb_favorite_position.ibatorgenerated_updateByPrimaryKeySelective", record);
        return rows;
    }

    /**
     * This method was generated by Apache iBATIS ibator.
     * This method corresponds to the database table tb_favorite_position11
     *
     * @ibatorgenerated Thu Jun 09 06:46:24 GMT 2011
     */
    public int updateByPrimaryKey(TbFavoritePosition record) {
        int rows = getSqlMapClientTemplate().update("tb_favorite_position.ibatorgenerated_updateByPrimaryKey", record);
        return rows;
    }

    /**
     * This class was generated by Apache iBATIS ibator.
     * This class corresponds to the database table tb_favorite_position11
     *
     * @ibatorgenerated Thu Jun 09 06:46:24 GMT 2011
     */
    private static class UpdateByExampleParms extends TbFavoritePositionExample {
        private Object record;

        public UpdateByExampleParms(Object record, TbFavoritePositionExample example) {
            super(example);
            this.record = record;
        }

        public Object getRecord() {
            return record;
        }
    }
}